package cn.edu.sasu.domain;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class News {
	private Integer newsId;
	private String newsTitle;
	private String newsContent;
	private String newsAddress;
	private String newsSource;
	private String newsData;
	private Integer newsFlag;
	private Integer commentsCount;// 跟帖数量
	private List<NewsResource> photos = new ArrayList<NewsResource>();
	private List<Comments> comments = new ArrayList<Comments>();
	private File photo = null;

	public File getPhoto() {
		return photo;
	}

	public void setPhoto(File photo) {
		this.photo = photo;
	}

	public News() {
	}

	public List<Comments> getComments() {
		return comments;
	}

	public void setComments(List<Comments> comments) {
		this.comments = comments;
	}

	public Integer getNewsId() {
		return newsId;
	}

	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}

	public String getNewsTitle() {
		return newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	public String getNewsContent() {
		return newsContent;
	}

	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}

	public String getNewsAddress() {
		return newsAddress;
	}

	public void setNewsAddress(String newsAddress) {
		this.newsAddress = newsAddress;
	}

	public String getNewsSource() {
		return newsSource;
	}

	public void setNewsSource(String newsSource) {
		this.newsSource = newsSource;
	}

	public String getNewsData() {
		return newsData;
	}

	public void setNewsData(String newsData) {
		this.newsData = newsData;
	}

	public Integer getNewsFlag() {
		return newsFlag;
	}

	public void setNewsFlag(Integer newsFlag) {
		this.newsFlag = newsFlag;
	}

	public Integer getCommentsCount() {
		return commentsCount;
	}

	public void setCommentsCount(Integer commentsCount) {
		this.commentsCount = commentsCount;
	}

	public List<NewsResource> getPhotos() {
		return photos;
	}

	public void setPhotos(List<NewsResource> photos) {
		this.photos = photos;
	}

}
